-- GENERATED SPELL FOR [Westfall Brigade Elite] --


function spell0_27549(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27549', 10336, 1)
end

function spell1_27549(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27549', 514, 1)
end

function Sorts_27549(pUnit, Event)
local choix_sorts_27549 = math.random(0, 1)
if choix_sorts_27549 == 0 then
pUnit:RegisterEvent('spell0_27549', 1, 1)
end
if choix_sorts_27549 == 1 then
pUnit:RegisterEvent('spell1_27549', 1, 1)
end
end

function mob27549_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27549', math.random(1500, 3000), 1)
end

function mob27549_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27549_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27549_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27549, 1, 'mob27549_Action')
RegisterUnitEvent(27549, 2, 'mob27549_Leave')
RegisterUnitEvent(27549, 3, 'mob27549_Kill')
RegisterUnitEvent(27549, 4, 'mob27549_Die')
